package com.example.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.entity.LikesInfo;
import com.example.demo.mapper.LikesMapper;

@Service
public class LikesService {

    @Autowired
    private LikesMapper likesMapper;

    public Integer add(LikesInfo likesInfo) {
        return likesMapper.add(likesInfo);
    }

    public LikesInfo queryLikesInfoByUidAndAid(Integer uid, Integer aid) {
        return likesMapper.queryLikesInfoByUidAndAid(uid, aid);
    }

    public Integer updateStateByLikesInfo(LikesInfo likesInfo) {
        return likesMapper.updateStateByLikesInfo(likesInfo);
    }

    public Integer delLikesInfoByAid(Integer aid) {
        return likesMapper.delLikesInfoByAid(aid);
    }

}
